<?php
/**
 * Created by PhpStorm.
 * User: jieaido
 * Date: 2017/6/13
 * Time: 9:31
 */
namespace Home\Model;

use Think\Model\RelationModel;

class LevelReationModel extends RelationModel
{
    protected $tableName = 'level';

    protected $_link = array(
        'member' => array(
            'class_name' => 'member',
            'mapping_type' => self::BELONGS_TO,
            'foreign_key' => 'member_id',
            'as_fields' => 'name'
        ));
}